package DesignPattern.Behavior.Strategy;

import Utils.Util;

public class Client {
    public static void main(String[] args) {
        // 春节:买一送一
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.sale();
        Util.divide();
        // 中秋：满200减20
        salesMan = new SalesMan(new StrategyB());
        salesMan.sale();
        Util.divide();
        // 冬季：满1000换购
        salesMan = new SalesMan(new StrategyC());
        salesMan.sale();
    }
}
